Problem Note 66193: Joining multiple DBMS tables might result in performance issues because some of the processing is done in SAS® rather than in the database
In Base SAS® software, slower performance might occur when you run an SQL procedure query and the following conditions exist:
- You create view1, which references a database management system (DBMS) table. The view includes DISTINCT along with the selection of multiple variables, and you rename one of the variables via a SELECT clause.
- You create view2 based on view1. In view2, you select the renamed variable and do the following:
- either rename it to the same name or include the label= modifier
- include a summary function on another variable that appeared in the SELECT clause in view1
- include a GROUP BY clause that contains the renamed variable from view1
- You create view3 based on view2. In view3, you select only the renamed variable from view1.
- You create a table where you join view1 and view3 based on the renamed variable being equal and select the renamed variable from view1.
- You are running one of the following versions:
- SAS® 9.4M4 (TS1M4) with any of these Base SAS hot fixes: A3Z047, A3Z058, or A3Z067
- SAS® 9.4M5 (TS1M5) with any of the following Base SAS hot fixes: B6Q027,B6Q044, B6Q045, B6Q056, B6Q071, B6Q073, B6Q076, or B6Q087
- SAS® 9.4M6 (TS1M6)
In this scenario, instead of the entire query being passed to the database, only a portion is passed and the rest of the query is performed by SAS.
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | Base SAS | z/OS | 9.4 TS1M4 | 9.4 TS1M7 |
z/OS 64-bit | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft® Windows® for x64 | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows 8 Enterprise 32-bit | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows 8 Enterprise x64 | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows 8 Pro 32-bit | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows 8 Pro x64 | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows 8.1 Enterprise 32-bit | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows 8.1 Enterprise x64 | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows 8.1 Pro 32-bit | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows 8.1 Pro x64 | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows 10 | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows Server 2008 | 9.4 TS1M4 | |
Microsoft Windows Server 2008 R2 | 9.4 TS1M4 | |
Microsoft Windows Server 2008 for x64 | 9.4 TS1M4 | |
Microsoft Windows Server 2012 Datacenter | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows Server 2012 R2 Datacenter | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows Server 2012 R2 Std | 9.4 TS1M4 | 9.4 TS1M7 |
Microsoft Windows Server 2012 Std | 9.4 TS1M4 | 9.4 TS1M7 |
Windows 7 Enterprise 32 bit | 9.4 TS1M4 | 9.4 TS1M7 |
Windows 7 Enterprise x64 | 9.4 TS1M4 | 9.4 TS1M7 |
Windows 7 Home Premium 32 bit | 9.4 TS1M4 | 9.4 TS1M7 |
Windows 7 Home Premium x64 | 9.4 TS1M4 | 9.4 TS1M7 |
Windows 7 Professional 32 bit | 9.4 TS1M4 | 9.4 TS1M7 |
Windows 7 Professional x64 | 9.4 TS1M4 | 9.4 TS1M7 |
Windows 7 Ultimate 32 bit | 9.4 TS1M4 | 9.4 TS1M7 |
Windows 7 Ultimate x64 | 9.4 TS1M4 | 9.4 TS1M7 |
64-bit Enabled AIX | 9.4 TS1M4 | 9.4 TS1M7 |
64-bit Enabled Solaris | 9.4 TS1M4 | 9.4 TS1M7 |
HP-UX IPF | 9.4 TS1M4 | 9.4 TS1M7 |
Linux for x64 | 9.4 TS1M4 | 9.4 TS1M7 |
Solaris for x64 | 9.4 TS1M4 | 9.4 TS1M7 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2020-07-01 09:35:00 |
Date Created: | 2020-06-23 17:21:58 |